<?php
namespace Frontend\form;

use Zend\Form\Form;
use Zend\InputFilter\InputFilter;
use Zend\Form\Element;

class addTopicForm extends Form {

    public function __construct($name = null){

        $this->setAttribute("method","post");
        $this->setAttribute('class', 'form-horizontal');
        $this->setAttribute('enctype', 'multipart/form-data')   ;

        $this->add(array(
            'name' => 'Title',
            'attributes' => array(
                'type'  => 'text',
                'class'=> 'text'

            ),
        ));

        $this->add(array(
            'name' => 'expire_date',
            'attributes' => array(
                'type'  => 'text',
                'class' => 'expire_date',
                'id' => 'expire_date'

            ),
        ));

        $this->add(array(
            'name' => 'user_id',
            'attributes' => array(
                'type'  => 'hidden',
                'class'=>'input-xlarge focused span6 typeahead'
            ),

        ));
        $this->add(array(
            'name' => 'title',
            'attributes' => array(
                'type'  => 'text',
                'class'=>'input-xlarge focused span6 typeahead'
            ),

        ));



        $this->add(array(
            'name' => 'price',
            'attributes' => array(
                'type'  => 'text',
                'class'=>'input-xlarge focused span6 typeahead'
            ),

        ));



        $this->add(array(
            'name' => 'short_description',
            'attributes' => array(
                'type'  => 'text',
                'class'=>'input-xlarge focused span6 typeahead'
            ),

        ));


        $this->add(array(
            'name' => 'full_description',
            'attributes' => array(
                'type'  => 'textarea',
                'class'=>'input-xlarge focused span6 typeahead'
            ),

        ));



        $this->add(array(
            'name' => 'submit',
            'attributes' => array(
                'type'  => 'submit',
                'value' => 'Go',
                'id' => 'submitbutton',
                'class' => 'btn btn-primary span3 typeahead'
            ),
        ));

    }

} 